package com.jielihaofeng.site.article.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.jielihaofeng.framework.common.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 个人网站-文章管理
 *
 * @author 借力好风 949394048@qq.com
 * @since 1.0.0 2022-07-21
 */
@Data
@Schema(description = "个人网站-文章管理")
public class ArticleVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "分类id")
    private Long categoryId;

    @Schema(description = "标签id列表")
    private List<String> tagIds;

    @Schema(description = "点赞")
    private Integer up;

    @Schema(description = "踩")
    private Integer down;

    @Schema(description = "喜欢")
    private Integer like;

    @Schema(description = "收藏")
    private Integer collect;

    @Schema(description = "评论")
    private Integer comment;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "状态 0：暂存   1：已提交  2：已审核  3：已发布")
    private Integer status;

    @Schema(description = "版本号")
    private Integer version;

    @Schema(description = "删除标识  0：正常   1：已删除")
    private Integer deleted;

    @Schema(description = "创建者")
    private Long creator;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "更新者")
    private Long updater;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateTime;


}